"use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["packages_document-metadata_document-metadata_ts-packages_failbot_failbot_ts"],{4559:(e,t,n)=>{n.d(t,{C:()=>i,i:()=>c});var r=n(71315),o=n(69599),a=n(46493);function i(e,t){(0,o.G7)("arianotify_comprehensive_migration")?c(l(e),{...t,element:t?.element??e}):(0,o.G7)("primer_live_region_element")&&t?.element===void 0?(0,a.Cj)(e,{politeness:t?.assertive?"assertive":"polite"}):c(l(e),t)}function c(e,t){let{assertive:n,element:i}=t??{};(0,o.G7)("arianotify_comprehensive_migration")&&"ariaNotify"in Element.prototype?(i||document.body).ariaNotify(e):(0,o.G7)("primer_live_region_element")&&void 0===i?(0,a.iP)(e,{politeness:n?"assertive":"polite"}):function(e,t,n){let o=n??r.XC?.querySelector(t?"#js-global-screen-reader-notice-assertive":"#js-global-screen-reader-notice");o&&(o.textContent===e?o.textContent=`${e}\u00A0`:o.textContent=e)}(e,n,i)}function l(e){return(e.getAttribute("aria-label")||e.innerText||"").trim()}},6923:(e,t,n)=>{n.d(t,{KJ:()=>a,X3:()=>o,g5:()=>i});var r=n(56038);let o=void 0===r.XC,a=!o;function i(){return!!o||!r.XC||!!(r.XC.querySelector('react-app[data-ssr="true"]')||r.XC.querySelector('react-partial[data-ssr="true"][partial-name="repos-overview"]'))}},11083:(e,t,n)=>{n.d(t,{X:()=>p,i:()=>s});var r=n(71315),o=n(34095),a=n(99223),i=n(69599),c=n(21067),l=n(70170);let u=[];function s(e,t=!1,n=.5){if(!r.X3&&!0!==(0,i.G7)("browser_stats_disabled")){if(n<0||n>1)throw RangeError("Sampling probability must be between 0 and 1");void 0===e.timestamp&&(e.timestamp=Date.now()),e.loggedIn=(0,c.M3)(),e.staff=p(),e.bundler=a.v,Math.random()JSON.stringify(e));for(;n.length>0;)t.push(function(e){let t=e.shift(),n=[t],r=t.length;for(;e.length>0&&r<=65536;){let t=e[0].length;if(r+t<=65536){let o=e.shift();n.push(o),r+=t}else break}return n}(n));return t}(u)){var t=e,n=`{"stats": [${o.join(",")}], "target": "${r.XC?.head?.querySelector('meta[name="ui-target"]')?.content||"full"}"}`;try{navigator.sendBeacon&&navigator.sendBeacon(t,n)}catch{}}u=[]}}function p(){return!!r.XC?.head?.querySelector('meta[name="user-staff"]')?.content}r.XC?.addEventListener("pagehide",d),r.XC?.addEventListener("visibilitychange",d)},21067:(e,t,n)=>{let r;function o(){if(!r)throw Error("Client env was requested before it was loaded. This likely means you are attempting to use client env at the module level in SSR, which is not supported. Please move your client env usage into a function.");return r}function a(){return r?.locale??"en-US"}function i(){return!!o().login}function c(){return o().login}n.d(t,{JK:()=>a,M3:()=>i,_$:()=>o,cj:()=>c}),!function(){if("undefined"!=typeof document){let e=document.getElementById("client-env");if(e)try{r=JSON.parse(e.textContent||"")}catch(e){console.error("Error parsing client-env",e)}}}()},34095:(e,t,n)=>{n.d(t,{G:()=>o,K:()=>a});var r=n(71315);let o=r.XC?.readyState==="interactive"||r.XC?.readyState==="complete"?Promise.resolve():new Promise(e=>{r.XC?.addEventListener("DOMContentLoaded",()=>{e()})}),a=r.XC?.readyState==="complete"?Promise.resolve():new Promise(e=>{r.cg?.addEventListener("load",e)})},38102:(e,t,n)=>{n.d(t,{N7:()=>v});var r=n(36301),o=n(77065),a=n(24212);function i(e){return(0,a.q)(e.stack||"").map(e=>({filename:e.file||"",function:String(e.methodName),lineno:(e.lineNumber||0).toString(),colno:(e.column||0).toString()}))}function c(e){let t=document.querySelectorAll(e);if(t.length>0)return t[t.length-1]}var l=n(99223),u=n(71315),s=n(94416),f=n(69599),m=n(88057);let d=!1,p=0,g=Date.now(),h=new Set(["AbortError","AuthSessionExpiredError","TypeError"]),y=new Set(["Failed to fetch","NetworkError when attempting to fetch resource.","Unable to perform this operation. Please try again later."]);function v(e,t={}){if(!(e instanceof Error||"object"==typeof e&&null!==e&&"name"in e&&"string"==typeof e.name&&"message"in e&&"string"==typeof e.message)){if(function(e){if(!e||"boolean"==typeof e||"number"==typeof e)return!0;if("string"==typeof e){if(C.some(t=>e.includes(t)))return!0}else if("object"==typeof e&&"string"==typeof e.message&&"number"==typeof e.code)return!0;return!1}(e))return;let n=Error(),r=function(e){try{return JSON.stringify(e)}catch{return"Unserializable"}}(e);S(w({type:"UnknownError",value:`Unable to report error, due to a thrown non-Error type: ${typeof e}, with value ${r}`,stacktrace:i(n),catalogService:document.head?.querySelector('meta[name="current-catalog-service"]')?.content,catalogServiceHash:document.head?.querySelector('meta[name="current-catalog-service-hash"]')?.content},t));return}e.name&&("AbortError"===e.name||h.has(e.name)&&y.has(e.message)||e.name.startsWith("ApiError")&&y.has(e.message))||S(w({type:e.name,value:e.message,stacktrace:i(e),catalogService:e.catalogService||document.head?.querySelector('meta[name="current-catalog-service"]')?.content,catalogServiceHash:e.catalogServiceHash||document.head?.querySelector('meta[name="current-catalog-service-hash"]')?.content},t))}async function S(e){if(!(!E&&!d&&p<10&&(0,o.TT)()))return;let t=document.head?.querySelector('meta[name="browser-errors-url"]')?.content;if(t){if(e.error.stacktrace.some(e=>b.test(e.filename)||b.test(e.function))){d=!0;return}p++;try{await fetch(t,{method:"post",body:JSON.stringify({context:e,target:document.head?.querySelector('meta[name="ui-target"]')?.content||"full"})})}catch{}}}function w(e,t={}){let n={...t};return(0,f.G7)("failbot_report_error_react_apps_on_page")&&!n.reactAppName&&(n.reactAppName=function(e){let t=function(){let e=new Set;for(let[t,n]of _)for(let r of document.querySelectorAll(t))if(r instanceof HTMLElement){let t=r.getAttribute(n);t&&e.add(t)}return Array.from(e)}();if(!t||!t.length||!e||!e.length)return;let n=new Set;for(let r of e){if(!r||!r.filename)continue;let e=r.filename.split(/[\\/]/).pop();if(!e||n.has(e))continue;n.add(e);let o=t.find(t=>e.toLowerCase().includes(t.toLowerCase()));if(o)return o}}(e.stacktrace)),Object.assign({error:e,sanitizedUrl:`${window.location.protocol}//${window.location.host}${function(){let e=c("meta[name=analytics-location]");return e?e.content:window.location.pathname}()+function(){let e=c("meta[name=analytics-location-query-strip]"),t="";e||(t=window.location.search);let n=c("meta[name=analytics-location-params]");for(let e of(n&&(t+=(t?"&":"?")+n.content),document.querySelectorAll("meta[name=analytics-param-rename]"))){let n=e.content.split(":",2);t=t.replace(RegExp(`(^|[?&])${n[0]}($|=)`,"g"),`$1${n[1]}$2`)}return t}()}`||window.location.href,readyState:document.readyState,referrer:(0,s.dR)(),timeSinceLoad:Math.round(Date.now()-g),user:function(){let e=document.head?.querySelector('meta[name="user-login"]')?.content;if(e)return e;let t=(0,r.y)();return`anonymous-${t}`}()||void 0,actorId:document.head?.querySelector('meta[name="octolytics-actor-id"]')?.content,bundler:l.v,ui:!!document.querySelector('meta[name="ui"]'),release:document.head?.querySelector('meta[name="release"]')?.content,pastRequestIds:(0,m.xA)()},n)}let b=/(chrome|moz|safari)-extension:\/\//,E=!1;u.cg?.addEventListener("pageshow",()=>E=!1),u.cg?.addEventListener("pagehide",()=>E=!0),"function"==typeof BroadcastChannel&&new BroadcastChannel("shared-worker-error").addEventListener("message",e=>{v(e.data.error)});let C=["Object Not Found Matching Id","Not implemented on this platform","provider because it's not your default extension"],_=[["react-app","app-name"],["react-partial","partial-name"]]},56038:(e,t,n)=>{n.d(t,{Kn:()=>i,XC:()=>o,cg:()=>a,fV:()=>c});let r="undefined"!=typeof FORCE_SERVER_ENV&&FORCE_SERVER_ENV,o="undefined"==typeof document||r?void 0:document,a="undefined"==typeof window||r?void 0:window,i="undefined"==typeof history||r?void 0:history,c="undefined"==typeof location||r?{pathname:"",origin:"",search:"",hash:"",href:""}:location},69599:(e,t,n)=>{n.d(t,{G7:()=>l,XY:()=>u,fQ:()=>c});var r=n(5225),o=n(21067);function a(){return new Set((0,o._$)().featureFlags)}let i=n(71315).X3||function(){try{return process?.env?.STORYBOOK==="true"}catch{return!1}}()?a:(0,r.A)(a);function c(){return Array.from(i())}function l(e){return i().has(e)}let u={isFeatureEnabled:l}},71315:(e,t,n)=>{n.d(t,{KJ:()=>r.KJ,Kn:()=>o.Kn,X3:()=>r.X3,XC:()=>o.XC,cg:()=>o.cg,fV:()=>o.fV,g5:()=>r.g5});var r=n(6923),o=n(56038)},76143:(e,t,n)=>{n.d(t,{D:()=>a,Y:()=>i});var r=n(4559),o=n(71315);function a(e){if(!o.XC)return;let t=o.XC.querySelector("title"),n=o.XC.createElement("title");n.textContent=e,t?t.textContent!==e&&(t.replaceWith(n),(0,r.i)(e)):(o.XC.head.appendChild(n),(0,r.i)(e))}function i(e){return document.body.classList.contains("logged-out")?`${e} \xb7 GitHub`:e}},82075:(e,t,n)=>{n.d(t,{A:()=>i,D:()=>c});var r=n(71315),o=n(11083);let a=class NoOpStorage{getItem(){return null}setItem(){}removeItem(){}clear(){}key(){return null}get length(){return 0}};function i(e,t={throwQuotaErrorsOnSet:!1},n=r.cg,c=e=>e,l=e=>e){let u;try{if(!n)throw Error();u=n[e]||new a}catch{u=new a}let{throwQuotaErrorsOnSet:s}=t;function f(e){t.sendCacheStats&&(0,o.i)({incrementKey:e})}function m(e){try{if(u.removeItem(e),t.ttl){let t=`${e}:expiry`;u.removeItem(t)}}catch{}}return{getItem:function(e,t=Date.now()){try{let n=u.getItem(e);if(!n)return null;let r=`${e}:expiry`,o=Number(u.getItem(r));if(o&&t>o)return m(e),m(r),f("SAFE_STORAGE_VALUE_EXPIRED"),null;return f("SAFE_STORAGE_VALUE_WITHIN_TTL"),c(n)}catch{return null}},setItem:function(e,n,r=Date.now()){try{if(u.setItem(e,l(n)),t.ttl){let n=`${e}:expiry`,o=r+t.ttl;u.setItem(n,o.toString())}}catch(e){if(s&&e instanceof Error&&e.message.toLowerCase().includes("quota"))throw e}},removeItem:m,clear:u.clear,getKeys:function(){return Object.keys(u)},get length(){return u.length}}}function c(e){return i(e,{throwQuotaErrorsOnSet:!1},r.cg,JSON.parse,JSON.stringify)}},88057:(e,t,n)=>{n.d(t,{Ex:()=>i,kt:()=>l,xA:()=>c});var r=n(71315);let o=Array(10).fill(null),a=0;function i(e){o[a]=e,a=(a+1)%10}function c(){let e=[];for(let t=0;t<10;t++){let n=o[(a-1-t+10)%10];n&&e.push(n)}return e}function l(){let e=r.XC;if(!e)return;let t=e.querySelector('meta[name="request-id"]'),n=t?.getAttribute("content");n&&i(n)}},94416:(e,t,n)=>{n.d(t,{BW:()=>o,Ff:()=>d,HK:()=>S,JA:()=>q,LM:()=>p,Pv:()=>E,Vy:()=>m,ZW:()=>b,dR:()=>w,di:()=>g,fX:()=>C,gc:()=>_,k9:()=>v,my:()=>y,r7:()=>A,wG:()=>h,xT:()=>f});var r=n(95800);let o="reload",a="soft-nav:fail",i="soft-nav:fail-referrer",c="soft-nav:referrer",l="soft-nav:marker",u="soft-nav:react-app-name",s="soft-nav:latest-mechanism";function f(){(0,r.SO)(l,"0"),(0,r.Ai)(c),(0,r.Ai)(a),(0,r.Ai)(i),(0,r.Ai)(u),(0,r.Ai)(s)}function m(e){(0,r.SO)(l,e)}function d(){(0,r.SO)(l,"0")}function p(){let e=(0,r.Gq)(l);return e&&"0"!==e}function g(){return(0,r.Gq)(l)}function h(){return!!y()}function y(){return(0,r.Gq)(a)}function v(e){(0,r.SO)(a,e||o),(0,r.SO)(i,window.location.href)}function S(){(0,r.SO)(c,window.location.href)}function w(){return(0,r.Gq)(c)||document.referrer}function b(){let e=C();e?(0,r.SO)(u,e):(0,r.Ai)(u)}function E(){return(0,r.Gq)(u)}function C(){return document.querySelector("projects-v2")?"memex":document.querySelector('react-partial[partial-name="repos-overview"]')?"repos-overview":document.querySelector("react-app")?.getAttribute("app-name")}function _(){return!!document.querySelector("react-app")?.getAttribute("app-name")||!!document.querySelector("projects-v2")}function q(e){(0,r.SO)(s,e)}function A(){return(0,r.Gq)(s)}},95800:(e,t,n)=>{n.d(t,{Ai:()=>a,Gq:()=>r,SO:()=>o});let{getItem:r,setItem:o,removeItem:a}=(0,n(82075).A)("sessionStorage")},99223:(e,t,n)=>{n.d(t,{k:()=>i,v:()=>c});var r=n(5225),o=n(71315);let a=(0,r.A)(function(){return o.XC?.head?.querySelector('meta[name="runtime-environment"]')?.content||""}),i=(0,r.A)(function(){return"enterprise"===a()}),c="webpack"}}]); //# sourceMappingURL=packages_document-metadata_document-metadata_ts-packages_failbot_failbot_ts-ce58061f469c.js.map